/**
 * 
 */
package se.ricardo.gamesorg.dbmanager.graphics;

import java.awt.Container;

import javax.swing.JFrame;
import javax.swing.JPanel;

import net.miginfocom.swing.MigLayout;

/**
 * @author Ricardo Ocaña Leal
 *
 */
public class ManagerFrame extends JFrame {

	public ManagerFrame() {
		setSize(1024, 768);
		setTitle("Games Organiser - Database Manager");
		setLayout(new MigLayout());
		
		setContent(new ManagerPanel());
		
		setVisible(true);
	}
	
	public void setContent(JPanel panel) {
		Container pane = getContentPane();
		pane.removeAll();
		pane.add(panel);
	}
}
